package com.tjian.fafa.user.base.util.user;

import android.content.Context;
import android.widget.Toast;

import com.tjian.fafa.user.base.ConnectedApp;
import com.tjian.fafa.user.base.bean.UserInfo;
import com.tjian.fafa.user.base.mainBody.MainBodyActivity;

public class UserUtil
{
    //跳转我的资料页面。
    public static UserInfo obtainLoginUser(Context context)
    {
        UserInfo userInfo = ConnectedApp.getInstance().getUserInfo();
        return userInfo;
    }

    public static String obtainLoginUserId(Context context)
    {
        UserInfo userInfo = obtainLoginUser(context);
        String id = String.valueOf(userInfo.getId());
        return id;
    }
}